<html>
<head>
<title>Constructors and Destructors.</title>
</head>
<body bgcolor="#dddddd">
<font color=brown>
<hr>
<center><h1>Constructors and Destructors.</h1></center>
<hr>
<a name="default">
<h2>Constructor</h2>

The <b>constructor</b> is executed when an object is created.
Its purpose is to initalise variables with in an object 
before they can be used.


<ul>
<li>If you do not provide a constructor for a class, the compiler 
    will create a default constructor for you.

<li>If the object has global scope, the constructor is executed 
    before main() 
</ul>

<a name="copy">
<h2>Copy Constructor</h2>

<a name="assignment">
<h2>Assignment Constructor</h2>

<a name="destructor">
<h2>Destructor</h2>
<p>

<hr>
<h2>Examples:</h2>
<img src="../../GRAPHICS/computer.gif" alt="o">
<a href="../EXAMPLES/xxxx.cc">Example program.</a>
<p>

<hr>
<h2>See Also:</h2>

</font>
<hr>
<font color=black>
<h2>C References</h2>
<p>
<img src="../../GRAPHICS/whiteball.gif" alt="o">
<a href="../../C/CONCEPT/xxxx.html">data types</a>.

</font>

<hr>
<p>
<center>
<table border=2 width="80%" bgcolor="ivory">
<tr align=center>
<td width="25%">
<a href="../cref.html">Top</a>
</td><td width="25%">
<a href="../../C/master_index.html">Master Index</a>
</td><td width="25%">
<a href="../SYNTAX/keywords.html">Keywords</a>
</td><td width="25%">
<a href="../../C/FUNCTIONS/funcref.htm">Functions</a>
</td>
</tr>
</table>
</center>
<p>
<hr>
<font color=brown>
<address><a href="../../address.html">Martin Leslie</a> 
<script language="JavaScript">
<!--  //
document.write(document.lastModified);
// -->
</script>
</address><p>
</font>
</body>
</html>
